const domain = 'http://106.54.197.238'

let api = {
    login: `/user/login`,
    register: '/user/updateUserMobile',
    registerDoctor: '/user/registDoctor',
    // consumer
    consumerHomePage:  '/user/appIndex',
    getDoctorList: '/user/listDoctorByCondition',
    searchCondition: '/user/listDoctorByCondition',
    getHealthList: '/user/listTreatment',
    consumerSystemMsg: '/user/listSystemMsg',
    consumerReadMsg: '/user/readSystemMsg',

    // 根据条件查询特定List
    getProvinceList: '/user/listProvinces',
    getLevelList: '/user/listLevel',
    getHospitalList: '/user/listHospital',
    searchCityByProvince: '/user/listCitiesByProvince',
    searchDepartByHospital: '/user/listDeptByHospital',
    searchPagerByDoctorId: '/user/listDoctorArticles',
    searchDoctorByCondition: '/user/listDoctorByCondition',

    // 关注医生操作
    concernDoctor: '/user/addConcern',
    cancelConcern: '/user/cancelConcern',
    isConcern: '/user/hadConcern',
    usedConcerns: '/user/listConcern',
    // 名医说操作
    addLike: '/user/addLike',
    searchPageById: '/user/getArticleById',

    //根据id查询医生信息
    getDoctorMsg: '/user/getDoctorIndex',

    //健康档案
    getHealthList: '/user/getHealthDoc',

}
for(let key in api) {
    api[key] = domain + api[key]
}
export default api